﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using EShop.Common;
using EShop.BussinessObjects;
using EShop.DataAccess;
using Mabna.Total.BOHelper;
using System.Collections.Generic;


public partial class ContactUs : BaseThemePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Company company = CGlobalData.GetCurrentCompany();
            if (company != null)
            {
                hdnCompany.Value = ObjectSerializer.ToJson(company);

                CompanyWorkingHour companyWorkingHour_Filter = new CompanyWorkingHour();
                companyWorkingHour_Filter.ID = (int)cnstDatabase.DBOperationResult.ValueIsNotEffective;
                companyWorkingHour_Filter.Company = new Company();
                companyWorkingHour_Filter.Company.ID = company.ID;
                companyWorkingHour_Filter.DayOfWeek = (int)cnstDatabase.DBOperationResult.ValueIsNotEffective;
                List<CompanyWorkingHour> companyWorkingHourList = CDACompanyWorkingHour.Select(companyWorkingHour_Filter);

                hdnCompanyWorkingHour.Value = ObjectSerializer.ToJson(companyWorkingHourList);
            }
        }
    }
}
